import request from '@/request/index.js'
import {C2B} from '@/utils/wordtransfer.js'

// 查询菜单的信息
export const LoadTreeData = () => {
   return request.post("/sys/rolemenus/menus",{})
}

// 授权信息
export const SaveRoleMenus = (roleId,menuIds) => {
   return request.post(`/sys/rolemenus/saveRoleMenus?roleId=${roleId}&menuIds=${menuIds}`,{})
}

// 查询角色授权的菜单信息
export const SelectRoleMenus = (roleId) => {
   return request.post(`/sys/rolemenus/rolemenus/${roleId}`,{})
}
